home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex1.pp next >
Encoding:
Text File  |  2000-01-01  |  166 b   |  13 lines

  1. Program Example1;
  2.  
  3. { Program to demonstrate the Abs function. }
  4.  
  5. Var 
  6.   r : real;
  7.   i : integer;
  8.  
  9. begin
  10.   r:=abs(-1.0);   { r:=1.0 }
  11.   i:=abs(-21);    { i:=21 }
  12. end.
  13.